/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app.solaris;

/**
 *
 * @author Frank
 */
public class Session {
    
    private static Session session = null;
    private boolean authentication;
    private String username, password;
    private int userID;
    
    protected Session() {
        // Default gebruiker op false zetten
        this.authentication = false;
    }
    
    public static Session instantiate() {
        if(session == null) {
            session = new Session();
        }
        return session;
    }   
    
    public void setAuthentication(boolean authentication) {
        this.authentication = authentication;
    }
    
    public boolean getAuthentication() {
        return this.authentication;
    }
    
    public void setUserID(int userID) {
        this.userID = userID;
    }
    
    public int getUserID(){
        return this.userID;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getUsername() {
        return this.username;
    }
    
    public String getPassword() {
        return this.password;
    }
    
}
